﻿using System.IO;
using System.Net;

namespace RStein.Posterous.API
{
    internal interface IPosterousRequestBuilder : IRawRequestResponsePublisher
    {
        void StartBuildWebRequest(string uri);
        void BuildHttpAuthentication(string userName, string password);
        void EndBuildWebRequest();
        WebRequest HttpWebRequest { get; }
        void BuildFormData(string key, string value);
        void BuildFormDataFromFile(string fileName);
        void BuildFormDataFromStream(Stream stream, string mediaName);        
        WebResponse GetResponse();
    }
}